package org.bingdianleil.stock.analyse;

import java.util.List;

import org.bingdianleil.dao.StockShowDao;
import org.bingdianleil.stock.dao.StockDao;
import org.bingdianleil.util.Util;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 均值分析方法
 * @author liulei
 *
 */
@Service
public class AvgAnalyse {

	@Autowired
	private  StockShowDao stockShowDao;
	

	@Autowired
	private StockDao stockDao;
	
	/**
	 * 求某日股票波动最大的股票
	 */
	public List getStock(String dataDate) {
		//step 1 获取股票列表
		List stockList= stockDao.getStock(null);
		for(int i=0;i<stockList.size();i++) {
		   	stockShowDao.getStockList(stockList.get(i).toString(), Util.getSysDate("yyyy-mm-dd"));
		}
		//step 2 分析股票的波动率
		
		//step 3 股票分析结果汇总排序
		
		
		return null;
	}
	  
	
}
